import Vue from 'vue'
import _axios,{interceptorRequest, interceptorResponse} from './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'

import {
    Button,
    Tabbar,
    TabbarItem,
    Uploader,
    Toast,
    NavBar,
    Cell,
    CellGroup,
    Field,
    List,
    Image
} from 'vant';

// Vue.component('van-button', Button); // 可以这样写
Vue.use(Button);
Vue.use(Tabbar).use(TabbarItem);
Vue.use(Uploader);
Vue.use(Toast);
Vue.use(NavBar);
Vue.use(Cell).use(CellGroup);
Vue.use(Field);
Vue.use(List);
Vue.use(Image);

Vue.config.productionTip = false

const  vm = new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')

interceptorRequest(vm);
interceptorResponse(vm);
